<?php
	session_start();
	header("Location: tst/games.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
 "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<!--  CSS Stuff -->
<link rel="stylesheet" href="images/custom_ui/jquery-ui-themeroller.css" type="text/css" />
<link rel="stylesheet" href="images/FNT_s4.css" type="text/css" />
<link rel="stylesheet" href="Tourny/css/FNT_tourny.css" type="text/css" />
<link rel="stylesheet" href="Games/css/FNT_games.css" type="text/css" />
<link rel="stylesheet" href="Games/css/FNT_game_detail.css" type="text/css" />
<link rel="stylesheet" href="Games/css/FNT_game_edit.css" type="text/css" />
<link rel="stylesheet" href="Games/css/FNT_game_discussion.css" type="text/css" />
<link rel="stylesheet" href="Points/css/FNT_points.css" type="text/css" />
<link rel="stylesheet" href="images/tables/table_blue_white_black.css" type="text/css" />

<link rel="stylesheet" href="./Gen_Scripts/jquery/jquery.cluetip.css" type="text/css" />
<link rel="stylesheet" href="./Gen_Scripts/jquery/thickbox.css" type="text/css" />

<!-- Jquery Stuff -->
<script type="text/javascript" src="./Gen_Scripts/jquery/jquery.js"></script>
<script type="text/javascript" src="./Gen_Scripts/jquery/jquery.form.js"></script>
<script type="text/javascript" src="./Gen_Scripts/jquery/ui/ui.core.min.js"></script>
<script type="text/javascript" src="./Gen_Scripts/jquery/ui/ui.tabs.min.js"></script>
<script type="text/javascript" src="./Gen_Scripts/jquery/thickbox.js"></script>
<!-- cluetip stuff-->
<script src="./Gen_Scripts/jquery/jquery.dimensions.js" type="text/javascript"></script>
<script src="./Gen_Scripts/jquery/jquery.hoverIntent.js" type="text/javascript"></script>
<script src="./Gen_Scripts/jquery/jquery.cluetip.js" type="text/javascript"></script>
<!-- Smooth Scrolling -->
<script src="./Gen_Scripts/jquery/jquery.scrollTo.js" type="text/javascript"></script>
<script src="./Gen_Scripts/jquery/jquery.localscroll.js" type="text/javascript"></script>


<script type="text/javascript">
$(document).ready(function(){
	$("#ajax_tourny").load("tourny.php");
	$("#gp_ajax").load("stats.php");
	$("#game_ajax").load("games.php");	
	$("#popup_ajax").load("popup.php");	
	$('#menu').localScroll();


	/*$(".nav").localScroll();*/
});
</script>
<title>FriNiteTourny</title> 
</head> 
<body>

<!-- wrap starts here--> 
	<div id="wrap">
		<?php 
		show_menu('index');		
		?>
	<div id="content-wrap">	
			<div id="tourny">
				<div id="ajax_tourny"></div>
			</div>
			<?php if(loggedin()){ ?>
			<div id="game_voting">
				<div id="gv_head"></div>
				<div id="gv_cont">
					<div id="gamevote">
						<h3>Games</h3>
						<div id="game_ajax"></div>
					</div>
				</div>
				<div id="gv_foot"></div>
			</div>
			<div id="gamepoints">
				<div id="gp_head"></div>
				<div id="gp_stats">
					<h3>Game Points</h3>
					<div id="gp_ajax"></div>
				</div>
			</div>
			<div id="popup">
				<div id="popup_ajax"></div>
			</div>
				<?php } ?>
		</div>
	</div>
</body>
</html>